
<script language="javascript">
function validate_form(thisform)
{
with (thisform)
{
	
	if (validate_required(txtten,"Bạn chưa nhập tên !")==false)
 	{txtten.focus();return false;}
	
}
}
</script>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td style="padding:10px">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
  
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td   width="6" height="6"><img src="images/j_crn_tl_med.png" width="6" height="6" /></td>
            <td  background="images/j_crn_t_med.png" width="100%"></td>
            <td  width="6" height="6" ><img src="images/j_crn_tr_med.png" width="6" height="6" /></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="1" background="images/dot.png"></td>
            <td class="bg_title"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="5%"><img src="images/icon-48-menumgr.png" width="48" height="48" /></td>
                <td width="45%" class="mana_title"> Thêm dịch vụ </td>
                <td width="50%" align="center">
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td width="75%">&nbsp;</td>
                      <td class="icon_style"><a href="#" onclick="document.getElementById('submit').click()"><img src="images/icon-32-save.png" width="32" height="33"  border="0"/><br />
                      Cập nhật</a></td>
                      <td class="icon_style"><a href="#"><img src="images/icon-32-help.png" width="32" height="32"  border="0"/><br />
                      Tr&#7907; gi&uacute;p</a></td>
                    </tr>
                  </table>
                  </td>
              </tr>
            </table></td>
            <td width="1" background="images/dot.png"></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="6" height="6" ><img src="images/j_crn_bl_med.png" width="6" height="6" /></td>
            <td  background="images/j_crn_b_med.png" width="100%"></td>
            <td width="6" height="6" ><img src="images/j_crn_br_med.png" width="6" height="6" /></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="7"></td>
  </tr>
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td   width="6" height="6"><img src="images/j_crn_tl_med.png" width="6" height="6" /></td>
            <td  background="images/j_crn_t_med.png" width="100%"></td>
            <td  width="6" height="6" ><img src="images/j_crn_tr_med.png" width="6" height="6" /></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="1" background="images/dot.png"></td>
            <td bgcolor="#fbfbfb"><form id="frmdanhsach" name="frmdanhsach" method="post" action="index.php?progid=6&services=xuly" onsubmit="return validate_form(this);">
           
              <table width="100%" border="0" cellspacing="2" cellpadding="2">
                <tr>
                  <th valign="baseline" style="padding-left:15px; width:100%"><fieldset id="fieldsearch2" runat="server">
                  <legend style="font-size:14px; color: black" title="Search" class="title_field"><span class="title_field">Chi tiết <?=$titaddphanloai?></span></legend>
                  <table width="100%" border="0" cellspacing="3" cellpadding="3">
                      <tr>
                        <td align="right" width="25%" class="bg_form_left">Tên dịch vụ </td>
                        <td class="bg_form_right"> <input name="txtten" type="text" id="txtten" />  </td>
                      </tr>
                      </tr>
                       <tr>
                        <td align="right" width="25%" class="bg_form_left">Tên Doamin </td>
                        <td class="bg_form_right"> <input name="txtdomain" type="text" id="txtdomain" />  </td>
                      </tr>
                      <tr>
                        <td align="right" width="25%" class="bg_form_left"> Loại dịch vụ </td>
                        <td class="bg_form_right"> 
                        <?php 
							$sql=mysql_query("select * from tb_services_type where services_type_status=1");
						?>
                        	<select name="services_type">
                            <option value="0"> --chọn loại dịch vụ--</option>
                            <?php 
								while($row_services=mysql_fetch_array($sql))
								{
							?>
                            <option value="<?php echo $row_services['services_type_id'];?>"><?php echo $row_services['services_type_name'];?> </option>
                                <?php }?>
                            </select>
                        </td>
                      </tr>
                       <tr>
                        <td align="right" width="25%" class="bg_form_left">Giá </td>
                        <td class="bg_form_right"> <input name="txtgia" type="text" id="txtgia" /> 
                        	<span> &nbsp;VAT </span>
                            <span> &nbsp;<input name="vat" type="text" id="vat" />  </span>
                        </td>
                       
                      </tr>
                       <tr>
                        <td align="right" width="25%" class="bg_form_left"> Mã khách hàng </td>
                        <td class="bg_form_right"> 
                       <?php 
							$sql2=mysql_query("select * from tb_account where account_status=1 and account_role=2 order by account_id desc");
						?>  
                        	<select name="account_id">
                         
                            <option value="0"> --chọn mã khách hàng--</option>
                             <?php 
								while($row_kh=mysql_fetch_array($sql2))
								{
							
							?>
                            <option value="<?php echo $row_kh['account_id'];?>"><?php echo $row_kh['account_code'];?> (<?php echo $row_kh['account_name'];?>) </option>
                            <?php }?>
                            </select>
                        </td>
                      </tr>
                      <tr>
                        <td align="right" width="25%" class="bg_form_left">Ngày đăng ký </td>
                        <td class="bg_form_right">
                        	<input name='txtdate_in' id="txtdate_in" value="" size="20"/> 
                            <script type="text/javascript" src="../js/jquery-ui-1.8.2.custom.min.js"></script> 
                    		<script type="text/javascript">
							$(function()
							{
								var arrayDayName=["CN","Hai","Ba","Tư","Năm","Sáu","Bảy"];
								var arrayMonthName=["Tháng 1","Tháng 2","Tháng 3","Tháng 4","Tháng 5","Tháng 6","Tháng 7","Tháng 8","Tháng 9","Tháng 10","Tháng 11","Tháng 12"];
								
								$('#txtdate_in').datepicker({
									yearRange: 'c-12:c+8',
									changeMonth: true,
									changeYear: true,
									dateFormat: 'dd-mm-yy',
									showAnim: 'slideDown',
									monthNamesShort:arrayMonthName,
									dayNamesMin:arrayDayName
								});										
							});	
						</script>
                        </td>
                      </tr>
                      <tr>
                        <td align="right" width="25%" class="bg_form_left">Ngày hết hạn </td>
                        <td class="bg_form_right"> 
                        <input name="txtdate_out" type="text" id="txtdate_out"  value=""/>  
                         <script type="text/javascript">
							$(function()
							{
								var arrayDayName=["CN","Hai","Ba","Tư","Năm","Sáu","Bảy"];
								var arrayMonthName=["Tháng 1","Tháng 2","Tháng 3","Tháng 4","Tháng 5","Tháng 6","Tháng 7","Tháng 8","Tháng 9","Tháng 10","Tháng 11","Tháng 12"];
								
								$('#txtdate_out').datepicker({
									yearRange: 'c-12:c+8',
									changeMonth: true,
									changeYear: true,
									dateFormat: 'dd-mm-yy',
									showAnim: 'slideDown',
									monthNamesShort:arrayMonthName,
									dayNamesMin:arrayDayName
								});										
							});	
						</script>
                        </td>
                      </tr>
                        <tr>
                          <td align="right" class="bg_form_left">Khóa</td>
                          <td align="left" >
                            <input type="radio" name="txtstatus" id="txtstatus" value="0" />
                            có
                            <input name="txtstatus" type="radio" id="txtstatus" value="1" checked="checked" />
                            không</td>
                        </tr>
                      <tr>
                        <td align="right" class="bg_form_left"><input type="submit" name="submit" id="submit" value="Cập nhật" /></td>
                        <td align="left" >
                          <input type="reset" name="Reset" id="button" value="Nhập lại" />                        </td>
                      </tr>
                    </table>
                  </fieldset></th>
                  </tr>
              </table>
              
                        </form>
            </td>
            <td width="1" background="images/dot.png"></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="6" height="6" ><img src="images/j_crn_bl_med.png" width="6" height="6" /></td>
            <td  background="images/j_crn_b_med.png" width="100%"></td>
            <td width="6" height="6" ><img src="images/j_crn_br_med.png" width="6" height="6" /></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
</td>
  </tr>
</table>
